function createWebContentsShortcut(webContents: Electron.WebContents) {
    webContents.on("before-input-event", (event, input) => {
        // 打开调试工具
        if (input.type == "keyUp" && input.key === "F12") {
            webContents.toggleDevTools();
        }
    });
}

export { createWebContentsShortcut };
